-
-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make preferred-dir the default read/write directory for slash commands #881
Conversation
for more information, see https://pre-commit.ci
…ase enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
…nto preferred_dir
@andrewfulton9 Thank you for opening this PR! I'm planning to give this a review by tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed and tested the new branch. Works as expected.
@andrewfulton9 Thanks for the nice contribution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewfulton9 Thank you for implementing this and helping us clean up the backend! Love that we're unifying logic. Left you a minor comment below.
@srdas Thank you for testing & verifying this PR for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewfulton9 Awesome work, thank you!
jupyterlab#881) * add preferred dir functionality to BaseChatHandler * remove print * cleanup * Change /learn to use _output_dir instead of root dir * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add preferred dir functionality to BaseChatHandler * remove print * cleanup * Change /learn to use _output_dir instead of root dir * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * change _output_dir to output_dir * Update packages/jupyter-ai/jupyter_ai/chat_handlers/base.py Co-authored-by: david qiu <[email protected]> * add type hint --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: david qiu <[email protected]>
Closes #880
adds
preferred_dir
attribute and_output_dir
property toBaseChatHandler
and updates children handlers to useself._output_dir
property in place ofself.root_dir
.